<template>
    <div>
        <h1 v-text="msg" ref="title"></h1>
        <button @click="showDOM">点我输出DOM元素</button>
        <School ref="sch"></School>
    </div>
</template>

<script>
import School from "@/components/Student.vue";

export default {
    name: "App",
    components: {School},
    data(){
        return {
            msg: 'HelloWorld'
        }
    },
    methods: {
        showDOM(){
            console.log(this.$refs)
        }
    }
}
</script>

<style scoped>

</style>